<template>
  <div class="createCenter">
    <h1>任务详情</h1>
    <el-icon @click="handleClose" class="icon-close"><CloseBold /></el-icon>
    <div class="createCenter-content">
      <div class="demand-detail">
        <div class="detail-title justify-between">
          <div class="left-title">所属需求:新闻稿件新闻稿件新闻稿件</div>
          <div class="right-time">任务时间:2024.06.15</div>
        </div>
        <div class="demand-info justify-between mt-12">
          <div class="info-item">预计交稿:2024.06.21</div>
          <div class="info-item">
            <span>稿件:</span>
            <span class="number">03</span>
            <span class="unit">篇</span>
          </div>
          <div class="info-item task-id-item">
            <span>任务ID:</span>
            <span class="taskId-number">W20240785569552612</span>
            <el-icon @click="handleCopy('W20240785569552612')" color="#999999"
              ><DocumentCopy
            /></el-icon>
          </div>
        </div>
      </div>
      <div class="process-content">
        <van-steps
          :active="active"
          active-icon="checked"
          inactive-icon="checked"
          active-color="#4560E6"
        >
          <van-step>添加关键词</van-step>
          <van-step>撰写稿件</van-step>
          <van-step>确认收稿</van-step>
          <van-step>完成</van-step>
        </van-steps>
        <!-- <div class="process-list">
        <div class="process-item" v-for="(item, index) in processlist" :key="index">
          <div class="item-title">{{ item.name }}</div>
        </div>
       </div> -->
      </div>
      <div class="keyword-record-list">
        <div
          class="record-list-item"
          :class="{ 'active-item': item.status == 'current' }"
          v-for="(item, index) in taskRecordList"
          :key="index"
        >
          <div class="left-list">
            <div class="left-dot-outer">
              <div class="left-dot"></div>
            </div>
            <div
              class="left-line"
              v-if="index < taskRecordList.length - 1"
            ></div>
          </div>
          <div class="right-content">
            <div class="right-title">
              <template v-if="item.status == 2">
                平台驳回于2024.06.29 - 12:00:00
              </template>
              <template
                v-else-if="
                  item.status == 3 || item.status == 4 || item.status == 6
                "
              >
                关键词审核通过于2024.06.29 - 12:00:00
              </template>
              <template v-else-if="item.status == 5">
                稿件完成于2024.06.29 - 12:12:00
              </template>
              <template v-else-if="item.status == 8">
                稿件确认完成于2024.06.29 - 12:12:00
              </template>
              <template v-else-if="item.status == 7">
                修改意见提交于2024.06.29 - 12:00:00
              </template>
              <template v-else-if="item.status == 'current'">
                <div class="current-task-status">
                  <span>当前状态：{{ currentTask.status }}</span>
                  <img
                  v-if="currentTask.status == '已完成'"
                    src="@/assets/image/mobile/mine/mobileDownload.png"
                    style="width: 92px; height: 28px"
                  />
                </div>
              </template>
              <template v-else>
                关键词提交于{{
                  item?.time && format(item.time, "yy.MM.dd - HH:mm:ss")
                }}
              </template>
            </div>
            <div class="right-content-info">
              <template v-if="item.status == 2">
                驳回理由：
                <div>{{ item.rejectReason }}</div>
              </template>
              <template
                v-else-if="
                  item.status == 3 || item.status == 4 || item.status == 6
                "
              >
                任务状态：关键词审核通过
              </template>
              <template v-else-if="item.status == 5">
                任务状态：撰写完成
              </template>
              <template v-else-if="item.status == 8">
                任务状态：确认收稿
              </template>
              <template v-else-if="item.status == 7">
                修改意见提交于2024.06.29 - 12:00:00
              </template>
              <template v-else-if="item.status == 'current'">
                <span
                  >说明：您的稿件已确认接收,
                  请务必在30天内保存到您的设备中.</span
                >
              </template>
              <template v-else>
                {{ item.keyword }}
              </template>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { Clock, CloseBold, DocumentCopy } from "@element-plus/icons-vue";
import datePicker from "./common/datePicker.vue";
import {
  format,
  add,
  startOfWeek,
  subDays,
  getDaysInMonth,
  getMonth,
  getYear,
  getDay,
  getDate,
  setDate,
} from "date-fns";
import EventBus from "@/utils/eventBus.js";

const currentTask = ref({
  status: "已完成",
});
const keyWordInputRef = ref(null);
const centerTitle = ref("创作中心");
const props = defineProps({
  currentDemand: {
    type: Object,
    default: {},
  },
  demandList: {
    type: Array,
    default: [],
  },
  isShow: {
    type: Boolean,
    default: false,
  },
});
const currentDate = ref(new Date());
const emits = defineEmits(["close"]);
const active = ref(1);
const processlist = [
  {
    name: "添加关键词",
    value: 1,
  },
  {
    name: "撰写稿件",
    value: 2,
  },
  {
    name: "确认收稿",
    value: 3,
  },
  {
    name: "完成",
    value: 4,
  },
];
let testRecordData =
  '{"result":{"total":4,"data":[{"id":894,"keyword_id":254,"keyword":"\\u6d4b\\u8bd51111111111111111111","keyword_time":"1724741053","status":8,"detailed":"\\u7528\\u6237\\u786e\\u8ba4\\u7a3f\\u4ef6","create_time":"2024-08-27 14:47:30","admin_id":0,"customer_id":10,"operator_type":1,"Customer":{"id":10,"mobile":"15828312164","password":"7338d0340d2ca3d85350e00aacd228a9","nickname":"\\u5c0f\\u97ec","headimage":"","login_time":"1724738326","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI","status":1,"balance":"0.09","remarks":"","create_time":"2024-08-07 15:20:07","update_time":"2024-08-27 13:59:44","delete_time":null},"Admin":null},{"id":893,"keyword_id":254,"keyword":"\\u6d4b\\u8bd51111111111111111111","keyword_time":"1724741222","status":5,"detailed":"\\u540e\\u53f0\\u7a3f\\u4ef6\\u5ba1\\u6838\\u901a\\u8fc7\\uff1a\\u672a\\u5199\\u539f\\u56e0","create_time":"2024-08-27 14:47:02","admin_id":13,"customer_id":10,"operator_type":2,"Customer":{"id":10,"mobile":"15828312164","password":"7338d0340d2ca3d85350e00aacd228a9","nickname":"\\u5c0f\\u97ec","headimage":"","login_time":"1724738326","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI","status":1,"balance":"0.09","remarks":"","create_time":"2024-08-07 15:20:07","update_time":"2024-08-27 13:59:44","delete_time":null},"Admin":{"id":13,"username":"15828312164","mobile":"15828312164","password":"7338d0340d2ca3d85350e00aacd228a9","remarks":"\\u674e\\u9f99\\u97ec","login_time":"1724738269","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MjY5LCJuYmYiOjE3MjQ3MzgyNzEsImV4cCI6MTcyNTM0MzA2OSwiZGF0YSI6eyJ1aWQiOjEzLCJyb2xlIjoxfX0.LRvf0aK-7ZbVQtXCZk3v_HM7r9_LO4Nv4NsyYxPDdbo","status":1,"authority":"19,20,21,22,43,29,6","operation_permissions":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,29,30,31,32,33,34,22,23","admin_role_id":7,"create_time":"2024-08-07 16:27:40","update_time":"2024-08-27 13:57:49","delete_time":null}},{"id":891,"keyword_id":254,"keyword":"\\u6d4b\\u8bd51111111111111111111","keyword_time":"1724741086","status":3,"detailed":"\\u540e\\u53f0\\u5173\\u952e\\u5b57\\u5ba1\\u6838\\u901a\\u8fc7\\uff1a\\u672a\\u5199\\u539f\\u56e0","create_time":"2024-08-27 14:44:46","admin_id":13,"customer_id":10,"operator_type":2,"Customer":{"id":10,"mobile":"15828312164","password":"7338d0340d2ca3d85350e00aacd228a9","nickname":"\\u5c0f\\u97ec","headimage":"","login_time":"1724738326","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI","status":1,"balance":"0.09","remarks":"","create_time":"2024-08-07 15:20:07","update_time":"2024-08-27 13:59:44","delete_time":null},"Admin":{"id":13,"username":"15828312164","mobile":"15828312164","password":"7338d0340d2ca3d85350e00aacd228a9","remarks":"\\u674e\\u9f99\\u97ec","login_time":"1724738269","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MjY5LCJuYmYiOjE3MjQ3MzgyNzEsImV4cCI6MTcyNTM0MzA2OSwiZGF0YSI6eyJ1aWQiOjEzLCJyb2xlIjoxfX0.LRvf0aK-7ZbVQtXCZk3v_HM7r9_LO4Nv4NsyYxPDdbo","status":1,"authority":"19,20,21,22,43,29,6","operation_permissions":"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,29,30,31,32,33,34,22,23","admin_role_id":7,"create_time":"2024-08-07 16:27:40","update_time":"2024-08-27 13:57:49","delete_time":null}},{"id":890,"keyword_id":254,"keyword":"\\u6d4b\\u8bd51111111111111111111","keyword_time":"1724741053","status":1,"detailed":"\\u7528\\u6237\\u521b\\u5efa\\u5173\\u952e\\u5b57","create_time":"2024-08-27 14:44:13","admin_id":0,"customer_id":10,"operator_type":1,"Customer":{"id":10,"mobile":"15828312164","password":"7338d0340d2ca3d85350e00aacd228a9","nickname":"\\u5c0f\\u97ec","headimage":"","login_time":"1724738326","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI","status":1,"balance":"0.09","remarks":"","create_time":"2024-08-07 15:20:07","update_time":"2024-08-27 13:59:44","delete_time":null},"Admin":null}]},"message":"ok","code":200}';
const taskRecordmap = {
  1: "添加关键词",
  2: "平台驳回",
  3: "审核通过",
  5: "稿件完成",
  7: "修改关键词",
};

const statusMap = {
  1: "关键词审核中",
  2: "待修改",
  3: "撰写中",
  4: "撰写中",
  5: "待确认",
  6: "撰写中",
  7: "稿件修改中",
  8: "已完成",
  0: "待补充",
};
// 任务列表
// const taskRecordList = JSON.parse(testRecordData).result.data.map(ii => {
//         let endTime = ''
//         if (ii.end_time && ii.end_time=='9999999999') {
//           endTime = '长期'
//         }
//         if (ii.end_time) {
//           endTime = format(new Date(ii.endTime * 1000), "yyyy-MM-dd HH:mm:ss")
//         }
//         let res = {
//           ...ii,
//           time: ii.keyword_time && format(new Date(ii.keyword_time * 1000), "yyyy-MM-dd HH:mm:ss"),
//           keyword: ii.keyword,
//           rejectReason: ii.detailed,
//           rejectTime: ii.create_time,
//           endTime,
//         }
//         return res
//       });

const taskRecordList = [
  {
    id: 894,
    keyword_id: 254,
    keyword: "测试1111111111111111111",
    keyword_time: "1724741053",
    status: 8,
    detailed: "用户确认稿件",
    create_time: "2024-08-27 14:47:30",
    admin_id: 0,
    customer_id: 10,
    operator_type: 1,
    Customer: {
      id: 10,
      mobile: "15828312164",
      password: "7338d0340d2ca3d85350e00aacd228a9",
      nickname: "小韬",
      headimage: "",
      login_time: "1724738326",
      token:
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI",
      status: 1,
      balance: "0.09",
      remarks: "",
      create_time: "2024-08-07 15:20:07",
      update_time: "2024-08-27 13:59:44",
      delete_time: null,
    },
    Admin: null,
    time: "2024-08-27 14:44:13",
    rejectReason: "用户确认稿件",
    rejectTime: "2024-08-27 14:47:30",
    endTime: "",
  },
  {
    id: 893,
    keyword_id: 254,
    keyword: "测试1111111111111111111",
    keyword_time: "1724741222",
    status: 5,
    detailed: "后台稿件审核通过：未写原因",
    create_time: "2024-08-27 14:47:02",
    admin_id: 13,
    customer_id: 10,
    operator_type: 2,
    Customer: {
      id: 10,
      mobile: "15828312164",
      password: "7338d0340d2ca3d85350e00aacd228a9",
      nickname: "小韬",
      headimage: "",
      login_time: "1724738326",
      token:
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI",
      status: 1,
      balance: "0.09",
      remarks: "",
      create_time: "2024-08-07 15:20:07",
      update_time: "2024-08-27 13:59:44",
      delete_time: null,
    },
    Admin: {
      id: 13,
      username: "15828312164",
      mobile: "15828312164",
      password: "7338d0340d2ca3d85350e00aacd228a9",
      remarks: "李龙韬",
      login_time: "1724738269",
      token:
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MjY5LCJuYmYiOjE3MjQ3MzgyNzEsImV4cCI6MTcyNTM0MzA2OSwiZGF0YSI6eyJ1aWQiOjEzLCJyb2xlIjoxfX0.LRvf0aK-7ZbVQtXCZk3v_HM7r9_LO4Nv4NsyYxPDdbo",
      status: 1,
      authority: "19,20,21,22,43,29,6",
      operation_permissions:
        "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,29,30,31,32,33,34,22,23",
      admin_role_id: 7,
      create_time: "2024-08-07 16:27:40",
      update_time: "2024-08-27 13:57:49",
      delete_time: null,
    },
    time: "2024-08-27 14:47:02",
    rejectReason: "后台稿件审核通过：未写原因",
    rejectTime: "2024-08-27 14:47:02",
    endTime: "",
  },
  {
    id: 891,
    keyword_id: 254,
    keyword: "测试1111111111111111111",
    keyword_time: "1724741086",
    status: 3,
    detailed: "后台关键字审核通过：未写原因",
    create_time: "2024-08-27 14:44:46",
    admin_id: 13,
    customer_id: 10,
    operator_type: 2,
    Customer: {
      id: 10,
      mobile: "15828312164",
      password: "7338d0340d2ca3d85350e00aacd228a9",
      nickname: "小韬",
      headimage: "",
      login_time: "1724738326",
      token:
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI",
      status: 1,
      balance: "0.09",
      remarks: "",
      create_time: "2024-08-07 15:20:07",
      update_time: "2024-08-27 13:59:44",
      delete_time: null,
    },
    Admin: {
      id: 13,
      username: "15828312164",
      mobile: "15828312164",
      password: "7338d0340d2ca3d85350e00aacd228a9",
      remarks: "李龙韬",
      login_time: "1724738269",
      token:
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MjY5LCJuYmYiOjE3MjQ3MzgyNzEsImV4cCI6MTcyNTM0MzA2OSwiZGF0YSI6eyJ1aWQiOjEzLCJyb2xlIjoxfX0.LRvf0aK-7ZbVQtXCZk3v_HM7r9_LO4Nv4NsyYxPDdbo",
      status: 1,
      authority: "19,20,21,22,43,29,6",
      operation_permissions:
        "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,29,30,31,32,33,34,22,23",
      admin_role_id: 7,
      create_time: "2024-08-07 16:27:40",
      update_time: "2024-08-27 13:57:49",
      delete_time: null,
    },
    time: "2024-08-27 14:44:46",
    rejectReason: "后台关键字审核通过：未写原因",
    rejectTime: "2024-08-27 14:44:46",
    endTime: "",
  },
  {
    id: 890,
    keyword_id: 254,
    keyword: "测试1111111111111111111",
    keyword_time: "1724741053",
    status: 1,
    detailed: "用户创建关键字",
    create_time: "2024-08-27 14:44:13",
    admin_id: 0,
    customer_id: 10,
    operator_type: 1,
    Customer: {
      id: 10,
      mobile: "15828312164",
      password: "7338d0340d2ca3d85350e00aacd228a9",
      nickname: "小韬",
      headimage: "",
      login_time: "1724738326",
      token:
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsb3ZlIiwiYXVkIjoiIiwiaWF0IjoxNzI0NzM4MzI2LCJuYmYiOjE3MjQ3MzgzMjgsImV4cCI6MTcyNTM0MzEyNiwiZGF0YSI6eyJ1aWQiOjEwLCJyb2xlIjoyfX0.RlHKChtPp3eDfNuwZWskClagEPdELq3KRUuur2eufBI",
      status: 1,
      balance: "0.09",
      remarks: "",
      create_time: "2024-08-07 15:20:07",
      update_time: "2024-08-27 13:59:44",
      delete_time: null,
    },
    Admin: null,
    time: "2024-08-27 14:44:13",
    rejectReason: "用户创建关键字",
    rejectTime: "2024-08-27 14:44:13",
    endTime: "",
  },
];
taskRecordList.unshift({
  status: "current",
});
const handleClose = () => {
  emits("close");
};
const handleSubmitKeyWord = () => {
  console.log("提交关键词");
};
onMounted(() => {});
// 复制
const handleCopy = (text) => {
  EventBus.emit("openToastBox", ["复制成功！", text]);
};

const daysListref = ref(null);
</script>

<style lang="scss" scoped>
.createCenter {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background: #f5f5f5;
  z-index: 21;
  padding: 16px;
  box-sizing: border-box;
  h1 {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
    line-height: 24px;
  }
  .icon-close {
    position: absolute;
    font-size: 24px;
    color: #333333;
    top: 16px;
    left: 16px;
  }
  .justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .createCenter-content {
    margin-top: 12px;
    height: calc(100% - 36px);
    overflow: auto;
    .demand-detail {
      width: 100%;
      background: #ffffff;
      border-radius: 8px 8px 8px 8px;
      padding: 15px 12px;
      box-sizing: border-box;
      font-weight: 400;
      font-size: 12px;
      color: #333333;
    }
    .detail-title {
      border-bottom: 1px solid #f2f2f2;
      padding-bottom: 12px;
      .left-title {
        flex: 1;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .right-time {
        margin-left: 50px;
      }
    }
    .demand-info {
      font-weight: 400;
      font-size: 12px;
      color: #333333;
      display: flex;
      align-items: center;
      .number {
        font-weight: bold;
        font-size: 12px;
        color: #1a1a1a;
        margin-left: 4px;
      }
      .unit {
        font-size: 10px;
      }
      .info-item {
        white-space: nowrap;
      }
      .task-id-item {
        width: calc(100% - 218px);
        display: flex;
        align-items: center;
        .taskId-number {
          flex: 1;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
      }
    }
    .process-content {
      width: 100%;
      height: 68px;
      background: #ffffff;
      border-radius: 12px;
      margin-top: 16px;
      .van-steps--horizontal {
        padding: 10px 40px 0;
        background: none;
        position: relative;
        top: -16px;
        :deep(.van-step__title) {
          position: relative;
          top: 40px;
        }
      }
      :deep(.van-step--horizontal:first-child .van-step__title) {
        transform: translate(-50%) !important;
        margin-left: 5px;
      }
      :deep(.van-steps--horizontal .van-steps__items) {
        padding-bottom: 40px;
      }
      :deep(.van-step--horizontal .van-step__circle-container) {
        padding: 0;
      }
      :deep(.van-step--horizontal .van-step__icon) {
        font-size: 16px;
      }
      :deep(
          .van-step--horizontal:last-child:not(:first-child) .van-step__title
        ) {
        margin-left: 0;
        transform: translate(50%);
      }
      .van-step--finish {
        color: #4560e6;
      }
    }
    .keyword-record-list {
      margin-top: 16px;
      width: 100%;
      background: #ffffff;
      border-radius: 12px;
      padding: 12px;
      box-sizing: border-box;
      .record-list-item {
        display: flex;
        .left-list {
          width: 12px;
          display: flex;
          flex-direction: column;
          .left-dot-outer {
            width: 12px;
            height: 12px;
            border-radius: 6px 6px 6px 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 5px 0;
          }
          .left-dot {
            width: 6px;
            height: 6px;
            background: #999999;
            border-radius: 50%;
          }
          .left-line {
            width: 1px;
            flex: 1;
            border-left: 1px dashed #999999;
            margin-left: calc(50% - 1px);
          }
        }
        .right-content {
          flex: 1;
          margin-left: 8px;
          .current-task-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
          }
          .right-title {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: #666666;
          }
          .right-content-info {
            margin-top: 12px;
            width: 100%;
            background: #f5f5f5;
            border-radius: 8px 8px 8px 8px;
            padding: 14px 8px;
            box-sizing: border-box;
            margin-bottom: 24px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 12px;
            color: #666666;
            line-height: 20px;
            text-align: left;
          }
        }
      }
      .active-item {
        .left-dot-outer {
          background: rgba(69, 96, 230, 0.2) !important;
          .left-dot {
            background: #4560e6 !important;
          }
        }
        .left-line {
          border-left: 1px dashed #4560e6 !important;
        }
        .right-title {
          color: #4560e6 !important;
        }
        .right-content-info {
          background: none !important;
          padding: 0 !important;
        }
      }
    }
  }
}
</style>
